﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreShop.Model.FromBody
{
    public class DutyApiPostModel
    {
        /// <summary>
        /// 交班单号
        /// </summary>
        public string billNo { get; set; }

        /// <summary>
        /// 钱箱金额
        /// </summary>
        public decimal boxAmount { get; set; }

        /// <summary>
        /// 钱箱金额
        /// </summary>
        public decimal openBoxAmount { get; set; }

        /// <summary>
        /// 门店
        /// </summary>
        public string branchId { get; set; }

        /// <summary>
        /// 创建者
        /// </summary>
        public string createBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public string createTime { get; set; }

        /// <summary>
        /// 设备号
        /// </summary>
        public string deviceId { get; set; }

        /// <summary>
        /// 班次开始日期
        /// </summary>
        public string dutyBeginTime { get; set; }

        /// <summary>
        /// 班次号
        /// </summary>
        public string dutyCode { get; set; }

        /// <summary>
        /// 营业日
        /// </summary>
        public string dutyDate { get; set; }

        /// <summary>
        /// 班次结束日期
        /// </summary>
        public string dutyEndTime { get; set; }

        /// <summary>
        /// 班次id
        /// </summary>
        public string dutyId { get; set; }

        /// <summary>
        /// 班次名称
        /// </summary>
        public string dutyName { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public string endTime { get; set; }

        /// <summary>
        /// 分页 页码
        /// </summary>
        public string pageNum { get; set; }

        /// <summary>
        /// 每页数
        /// </summary>
        public string pageSize { get; set; }

        /// <summary>
        /// 充值记录
        /// </summary>
        public List<ApiPosDutyRecharge> posDutyRechargeList { get; set; }

        /// <summary>
        /// 收银记录
        /// </summary>
        public List<ApiPosDutySale> posDutySaleList { get; set; }

        /// <summary>
        /// 收银用户
        /// </summary>
        public string posUserId { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public string startTime { get; set; }

        /// <summary>
        /// 状态 0 有效 1 交班
        /// </summary>
        public string status { get; set; }

        /// <summary>
        /// 商户
        /// </summary>
        public string tenantId { get; set; }

        /// <summary>
        /// 查询时间类型 例如：单据时间、审核时间、创建时间等
        /// </summary>
        public string timeType { get; set; }

        /// <summary>
        /// 更新者
        /// </summary>
        public string updateBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public string updateTime { get; set; }

        /// <summary>
        /// 收银员
        /// </summary>
        public string username { get; set; }


    }

    /// <summary>
    /// 交班充值表
    /// PosDutyRecharge
    /// </summary>
    public class ApiPosDutyRecharge
    {
        /// <summary>
        /// 充值金额
        /// </summary>
        public decimal amountBalance { get; set; }

        /// <summary>
        /// 收银方式
        /// </summary>
        public string balanceTypeId { get; set; }

        /// <summary>
        /// 班次号
        /// </summary>
        public string posDutyId { get; set; }

        /// <summary>
        /// id
        /// </summary>
        public string posDutyRechargeId { get; set; }

        /// <summary>
        /// 充值笔数
        /// </summary>
        public string rechargeNum { get; set; }
    }

    /// <summary>
    /// 交班零售表
    ///
    /// PosDutySale
    /// </summary>
    public class ApiPosDutySale
    {
        /// <summary>
        /// 零售金额
        /// </summary>
        public decimal amountBalance { get; set; }

        /// <summary>
        /// 收银方式
        /// </summary>
        public string balanceTypeId { get; set; }

        /// <summary>
        /// 班次号
        /// </summary>
        public string posDutyId { get; set; }

        /// <summary>
        /// id
        /// </summary>
        public string posDutySaleId { get; set; }

        /// <summary>
        /// 零售笔数
        /// </summary>
        public string saleNum { get; set; }
    }
}
